// package: rewords-server-2024
// filename: router
// author: diogoxiang@gmail.com
// time: 2024/12/2 10:36

package router

import (
	"context"
	"github.com/gogf/gf/v2/net/ghttp"
	"rewords-server-2024/internal/consts"
	"rewords-server-2024/internal/controller/wxappCtrl"
	"rewords-server-2024/internal/service"
	"rewords-server-2024/utility/simple"
)

func WxApp(ctx context.Context, group *ghttp.RouterGroup) {
	group.Group(simple.RouterPrefix(ctx, consts.AppWxApp), func(group *ghttp.RouterGroup) {
		group.Middleware(service.Middleware().RateLimit())

		group.Bind(
			wxappCtrl.WxApp,
		)

	})
}
